package com.foreknow.demo1;

/**
 * DAO: Data Access Object
 *
 * insert into employee(name,age,dept) values(?,?,?)
 * select * from employee
 * select * from employee where id=?
 * update employee set name=?,age=? where id=?
 */
public interface EmployeeDao {

    /**
     * 添加员工信息
     * @param employee
     */
    void saveObject(Employee employee);

    /**
     * 查询所有员工信息
     * @return
     */
    Employee[] getQueryAll();

    /**
     * 根据id查询某个员工
     * @param id
     * @return
     */
    Employee getQueryById(String id);

    /**
     * 修改员工信息
     * @param employee
     * @return
     */
    Employee update(Employee employee);

}
